import request from "@/utils/request";

export function getPageJobSeekerByStatus(params) {
  return request({
    url: "/recruit2/api/v1/jobSeekers/pageJobSeekerByStatus",
    method: "GET",
    params
  });
}

export function getNoSiteId(data) {
  return request({
    url: `${data}`,
    method: "GET"
  });
}

export function getprincipalNameById(principalId) {
  return request({
    url: `/recruit2/api/v1/jobSeekers/getprincipalNameById/${principalId}`,
    method: "GET"
  });
}

export function getJobSeekers(data) {
  return request({
    // url: `/recruit2/api/v1/talentPools/${data}`,
    url: `/recruit2/api/v1/deliverRecords/${data}`,
    method: "GET"
  });
}

export function getTalentPools(data) {
  return request({
    url: `/recruit2/api/v1/talentPools/${data}`,
    method: "GET"
  });
}
export function getTalentPools2(data) {
  return request({
    url: `/recruit2/api/v1/talentPools/selectByIdOnSystem/${data}`,
    method: "GET"
  });
}

export function putDeliverRecords(data) {
  return request({
    url: "/recruit2/api/v1/deliverRecords",
    method: "put",
    data
  });
}

export function putJobSeekers(data) {
  return request({
    url: "/recruit2/api/v1/talentPools/updateBySystem",
    method: "put",
    data
  });
}
export function putJobSeekers2(data) {
  return request({
    url: "/recruit2/api/v1/talentPools/saveBySystem",
    method: "post",
    data
  });
}
export function postArrangeAnInterview(data) {
  return request({
    url: "/recruit2/api/v1/interviews/arrangeAnInterview",
    method: "post",
    data
  });
}

export function postAddCandidate(data) {
  return request({
    url: "/recruit2/api/v1/jobSeekers/addCandidate",
    method: "post",
    data
  });
}

export function getRecruitInfos(params) {
  return request({
    url: "/recruit2/api/v1/recruitInfos/listAllByIsCancel",
    method: "GET",
    params: params
  });
}

export function getNormalPost(params) {
  return request({
    url: "/recruit2/api/v1/recruitInfos/getNormalPost",
    method: "GET",
    params
  });
}

export function getBrokers(brokerId) {
  return request({
    url: `/recruit2/api/v1/brokers/${brokerId}`,
    method: "GET"
  });
}

export function getInfoById(deliverRecordId) {
  return request({
    url: `/recruit2/api/v1/deliverRecords/getInfoById/${deliverRecordId}`,
    method: "GET"
  });
}
